package com.example.demo.entity.mybatisplus;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 
 * </p>
 *
 * @author xzw
 * @since 2021-01-04
 */
@TableName("tb_sys_organization")
public class TbSysOrganization extends Model<TbSysOrganization> {

    private static final long serialVersionUID = 1L;

    /**
     * 组织机构编码
     */
    @TableId
    private String orgid;
    /**
     * 组织机构名称
     */
    private String orgname;
    /**
     * 上级组织机构id
     */
    private String parent_id;
    /**
     * 备注
     */
    private String remark;
    /**
     * 组织机构类型  1省、直辖市   2地市   3区、县
     */
    private String org_type;


    public String getOrgid() {
        return orgid;
    }

    public void setOrgid(String orgid) {
        this.orgid = orgid;
    }

    public String getOrgname() {
        return orgname;
    }

    public void setOrgname(String orgname) {
        this.orgname = orgname;
    }

    public String getParent_id() {
        return parent_id;
    }

    public void setParent_id(String parent_id) {
        this.parent_id = parent_id;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getOrg_type() {
        return org_type;
    }

    public void setOrg_type(String org_type) {
        this.org_type = org_type;
    }

    @Override
	public Serializable pkVal() {
        return this.orgid;
    }

    @Override
    public String toString() {
        return "TbSysOrganization{" +
        ", orgid=" + orgid +
        ", orgname=" + orgname +
        ", parent_id=" + parent_id +
        ", remark=" + remark +
        ", org_type=" + org_type +
        "}";
    }
}
